使用jackson注解@JsonProperty序列化對象 輸出結果: 注意:@JsonProperty是jackson的注解,序列化對象要使用Jackson的類庫,不要用fastjson等其他json序列化類庫,否則注解不會生效。 ...